/**
 * Created by LJY on 2017/3/11.
 */
public class compare {
    public static void main(String[] args) {
        String name1="yhzz";
        String name2="yhzz";
        String name3=new String("yhzz");
        String name4=new String("yhzz");
        System.out.println(name1==name2);
        System.out.println(name1==name3);
        System.out.println(name3==name4);


    }
}
